import httpAxios from "@/utils/http"

// 轮播图
export function getBannerAPI (params={}) {
  // 默认为1 商品为2
  const { distributionSite = '1' } = params
    return httpAxios({
        url: '/home/banner',
        method: 'GET',
        params:{
          distributionSite
        }
    })
}

// 新鲜好物
export const findNewAPI = () => {
    return httpAxios({
      url:'/home/new'
    })
  }

// 人气推荐
export const findHotAPI = () => {
  return httpAxios({
    url:'/home/hot'
  })
}

// 所有商品模块
export const getGoodsApi = () => {
  return httpAxios({
    url: '/home/goods'
  })
}